<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>Control</title>
		<link href="../../py/resources/share/control/core.css" rel="stylesheet" type="text/css" />
        <link href="../../py/resources/default/control/core.css" rel="stylesheet" type="text/css" />
		
        <script src="../../py/system.js" type="text/javascript"></script>
		<script src="../../py/system/dom/element.js" type="text/javascript"></script>
		<script src="../../py/system/controls/control.js" type="text/javascript"></script>
		<script src="../../py/system/controls/contentcontrol.js" type="text/javascript"></script>
		
		<script src="../../py/system/controls/box.js" type="text/javascript"></script>
		<script src="../../common/project/project.js" type="text/javascript"></script>
		<script src="../../common/assets/scripts/default.js" type="text/javascript"></script>
		<script src="../../common/assets/scripts/debug.js" type="text/javascript"></script>
		
		<style>
			
			.ct {
				background:purple ;
				position: absolute; 
			}
			
			.inner  {
				background: blue; 
				color: yellow;
				display: inline-block;
				
				*display: inline;
				*zoom: 1;
			}
			
		</style>
    </head>
    <body>
		<div id="ct2" class="ct" style="top:  170px;">
			<div class="inner">内容</div>
		</div>
		
		<script>
		
		
		var container = new Py.ContentControl("ct2");
		
		container.content = container.get(0);
		
		container.renderTo();
		
		var fns = [
			["ContentControl.prototype.setHtml(小)", function(){ return container.setHtml('容器');  }],
			["ContentControl.prototype.setHtml(大)", function(){ return container.setHtml('容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器容器');  }],
			["ContentControl.prototype.setWidth(数)", function(){ return container.setWidth(300);  }],
			["ContentControl.prototype.setWidth(自动)", function(){ return container.setWidth(NaN);  }]
		];
		
		
		</script>
		
		
		<!--
		
		<div style="position: relative;" id="ct">
			<div  class="x-column" style="width: 200px; height: 600px; border: 1pt solid red; margin:10px; padding:4px;" ></div>
			<div style="width: 200px; height: 200px; border: 1pt solid red; margin:10px; padding:4p" class="x-column" ></div>
		</div>
		
		<div class="x-clear"></div>
		
		<div style="text-align:center; position: relative;" id="ct">
			<div  class="x-block" style="width: 200px; height: 600px; border: 1pt solid red; margin:10px; padding:4px;" ></div>
			<div style="width: 200px; height: 200px; border: 1pt solid red; margin:10px; padding:4p" class="x-block" ></div>
		</div  -->
    </body>
</html>
